#!/bin/bash
if [ $# -lt 1 ] 
then
    echo "Usage: ./batchDeleteWeight.sh relateFiles";
    echo "File structure:"
    echo "relatedFileName1"
    echo "relatedFileName2"
    exit 1;
else
    config_file=$1
fi

for file in `cat $config_file`
do
    echo $file
    ./deleteWeight.sh $file > $file".trim"
done
